// Datasets to be used with the OpenError library for displaying multiple realizations of data
// GEOJSON object containing a collection of data points with unknown error

  	var ptsMSU = {"type":"MultiPoint",
				"coordinates":[ [42.731715,-84.48590], [42.730927,-84.48348], [42.730691,-84.48277], 
								[42.730352,-84.48175], [42.731455,-84.48167], [42.732440,-84.48387], 
								[42.732173,-84.48440] ]};


	var ptsOne = {"type":"MultiPoint",
				"coordinates":[ [0,0] ]};
								
  	var ptsGrid = {"type":"MultiPoint",
				"coordinates":[ [0,0],[0,5],[0,10],
								[5,0],[5,5],[5,10],
								[10,0],[10,5],[10,10] ]};
								
	// used to display points and the changed circles in diff latitudes
  	var ptsLine = {"type":"MultiPoint",
				"coordinates":[ [0,0],[10,0],[20,0],
								[30,0],[40,0],[50,0],
								[60,0],[70,0],[80,0] ]};
								
	// A Precalculated array of distances from each point to all the others
		// Note how all the diagonal values are 0
    var dist = Array(
        Array(0, 5, 10, 5, 7.07, 11.18, 10, 11.18, 14.14),
        Array(5, 0, 5, 7.07, 5, 7.07, 11.18, 10, 11.18),
        Array(10, 5, 0, 11.18, 7.07, 5, 14.14, 11.18, 10),
        Array(5, 7.07, 11.18, 0, 5, 10, 5, 7.07, 11.18),
        Array(7.07, 5, 7.07, 5, 0, 5, 7.07, 5, 7.07),
        Array(11.18, 7.07, 5, 10, 5, 0, 11.18, 7.07, 5),
        Array(10, 11.18, 14.14, 5, 7.07, 11.18, 0, 5, 10),
        Array(11.18, 10, 11.18, 7.07, 5, 7.07, 5, 0, 5),
        Array(14.14, 11.18, 10, 11.18, 7.07, 5, 10, 5, 0)
        );
		
	var ptsLei = {type:"MultiPoint",
				coordinates: [ [52.635954,-1.124918], [52.637217,-1.134081] ]};
				
	var ptsLei2 = {type:"MultiPoint",
				coordinates: [ [52.6336,-1.125], [52.633,-1.135] ]};
		
	////////////////////////
	// default paramaters
	/////////////////////////
	var defaults = {pts:ptsGrid, dist:dist, center:[5,5], sd: 100000};
								
								